const getList = (author, keyword) => {
  console.log(author, keyword, '---- 获取列表 参数 ----')
  return [
    {
      id: 1,
      title: '标题1',
      content: '内容1',
      createTime: 123456789,
      author: 'zhangsan',
    },
    {
      id: 2,
      title: '标题2',
      content: '内容2',
      createTime: 123456789,
      author: 'lisi',
    },
  ]
}
const getDetail = (id) => {
  console.log(id, '---- 获取详情 参数 ----')
  return {
    id: 1,
    title: '标题1',
    content: '内容1',
    createTime: 123456789,
    author: 'zhangsan',
  }
}

const newBlog = (blogData = {}) => {
  console.log(blogData, '---- 新建博客 参数 ----')
  return blogData
}

const updateBlog = (id, blogData = {}) => {
  console.log(id, blogData, '---- 更新博客 参数 ----')
  return blogData
}

const delBlog = (id) => {
  console.log(id, '---- 删除博客 参数 ----')
  return true
}

module.exports = {
  getList,
  getDetail,
  newBlog,
  updateBlog,
  delBlog,
}
